build-sys: Add "release build" flag, use for symbol versioning
authorColin Walters <walters@verbum.org>
Mon, 19 Jun 2017 14:23:21 +0000 (10:23 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 19 Jun 2017 14:54:59 +0000 (14:54 +0000)
commita45dc0fd0bd3675471f4f18a77df0a5785f54ebb
treeafb27e3d229925534441c85d0fe5cc269ef40a43
parent22e753176e62d3c7377ccb2e51108191a4b41d9d
build-sys: Add "release build" flag, use for symbol versioning

I was trying to do a release and move the symbols from `-devel.sym` into
`-release.sym`, but it turns out that at least GNU binutils `ld` treats an empty
version script as a syntax error.  Fix this by adding a "release build"
flag, and only include `-devel` in non-release builds.

This would also make it easier to inject that flag into our `.pc` and
`ostree-version.h` and `ostree --version` metadata, but I didn't do that yet.

EDIT: Turns out a simpler fix is just to add an empty section. However I kept
this commit since it's a useful sanity check for whether we should include
`-devel.sym` in builds, and we may want to inject the metadata later.

Closes: #942
Approved by: jlebon
Makefile-libostree.am
configure.ac